package site.brood.user.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import site.brood.common.core.excel.annotation.Excel;
import site.brood.common.core.entity.BaseEntity;

import java.time.LocalDateTime;


/**
 * 用户信息
 */
@TableName("role")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Role extends BaseEntity {
    /** 角色ID */
    @TableId(type = IdType.AUTO)
    @Excel(name = "角色id", cellType = Excel.ColumnType.NUMERIC)
    private Long id;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String roleName;

    /** 角色权限 */
    @Excel(name = "角色权限")
    private String roleKey;

    /** 角色排序 */
    @Excel(name = "角色排序")
    private String roleSort;

    /** 角色状态（0正常 1停用） */
    @Excel(name = "角色状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    private String createBy;
    private LocalDateTime createTime;
    private String updateBy;
    private LocalDateTime updateTime;
    private String remark;
}
